#!/usr/bin/env python
# -*- coding: utf-8 -*-

import socket
import time

TCPCliSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
TCPCliSocket.connect(('127.0.0.1', 9999))
data = 's,99,1,2016-12-14 13:47:32,0.0000,0.3279,15.123,294.60,997.62,305315,$'
TCPCliSocket.sendall(data)
print TCPCliSocket.recv(5120)
TCPCliSocket.close()

